package com.qfedu.hello.mybatis.entity;

import java.util.List;

/**
 * @auther asus
 * @date 2022/4/22 9:55
 * 部门类
 */
public class Dept1 {
    private Integer id;
    private String name;
    private String location;
    //可以通过这个集合属性获取到部门下的所有员工
    private List<Emp1> emp1List;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public List<Emp1> getEmp1List() {
        return emp1List;
    }

    public void setEmp1List(List<Emp1> emp1List) {
        this.emp1List = emp1List;
    }

    @Override
    public String toString() {
        return "Dept1{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", location='" + location + '\'' +
                '}';
    }
}
